import request from '@/utils/request'

//业主车辆列表
export function fetchList(query) {
  return request({
    url: '/ownerCar/list',
    method: 'post',
    data: query
  })
}

//删除业主车辆
export function deleteOwnerCar(id) {
  return request({
    url: '/ownerCar/delete/' + id,
    method: 'post',
  })
}

//创建业主车辆
export function createOwnerCar(query) {
  return request({
    url: '/ownerCar/create',
    method: 'post',
    data: query
  })
}

//更新业主车辆
export function updateOwnerCar(query) {
  return request({
    url: '/ownerCar/update',
    method: 'post',
    data: query
  })
}


//业主车辆详情
export function ownerCarDetail(id) {
  return request({
    url: '/ownerCar/' + id,
    method: 'get',
  })
}
